package adapter.ObjectAdapter;

public class phone {

    public void charging(IVoltage5V iVoltage5V){
        if(iVoltage5V.output5v()==5){
            System.out.println("电压为5V,可以充电");
        }else {
            System.out.println("电压过高");

        }

    }
}
